<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body> 
    <!-- 可以在不同设备屏幕大小时，选择使用不同图片 -->
    <img srcset="./images/icon.png 500w ./images/icon1.png 1000w" />

    <img src="./images/icon.png" style="max-width: 100%;" />
</body>
</html>